﻿module Enferno.Public.Web.Components.Models {
    
    export class AddressAndPersonInformationModel {
        public address: AddressModel;
        public personInformation: PersonInformationModel;

        constructor(serverObject?: any) {
            if (serverObject != null) {
                this.createFromServerObject(serverObject);
            }
        }

        private createFromServerObject(serverObject: any) {
            this.address = new AddressModel(serverObject.address);
            this.personInformation = new PersonInformationModel(serverObject.personInformation);
        }
    }

} 